package com.cdc.receiveparamers;

import com.opensymphony.xwork2.ActionSupport;

/**
 * 2.使用Domain Model接收参数
 * @author cdc
 *
 */
public class LoginActionDoMainModel extends ActionSupport{
	private static final long serialVersionUID = -2400679395879669930L;
	private UserLogin userLogin;
	public UserLogin getUserLogin() {
		return userLogin;
	}
	public void setUserLogin(UserLogin userLogin) {
		this.userLogin = userLogin;
	}
	
	public String loginDoMainModel() {
		System.out.println(userLogin.getUsername());
		
		return SUCCESS;
	}
}
